package chapter06;

import java.util.ArrayList;
import java.util.Collection;

public class list_1 {
    public static void main(String[] args) {
//        Iterable
        //itertator主要用于遍历collection中元素
        //增强for循环 底层任然是迭代器
        //快捷键：I

        int[] nums={11,23,3,4,5,6,32};
        for (int i:nums) {
            System.out.println(i);
        }
        System.out.println("_____");
        for (int i = 0; i < nums.length; i++) {
            System.out.println(nums[i]);
        }

    }
}
